package com.jdd.modules.userstaff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jdd.dao.vo.PeopleNum;
import com.jdd.modules.userstaff.dto.UserDto;
import com.jdd.modules.userstaff.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description: 人员
 * @Author: jdd
 * @Date:   2022-03-23
 * @Version: V1.0
 */
public interface UserMapper extends BaseMapper<User> {

    IPage<UserDto> findAllUserInfo(@Param("page") Page<UserDto> page, @Param("userDto") UserDto userDto);
    IPage<UserDto> findProjectUserPage (@Param("page") Page<UserDto> page , @Param("userDto") UserDto userDto,@Param("projectCodes") List<String> projectCodes,@Param("createTimeBegin") Date createTimeBegin ,@Param("createTimeEnd") Date createTimeEnd);
    int selectByHouseId(@Param(value="id") String id);

    int countByAreaId(@Param(value="id")String id);

    List<PeopleNum> selectPeopleNum();
}
